package org.ricks.item;

public interface ItemBehavior {
    default boolean isStackable(ItemInstance item) {
        ItemMeta meta = ItemFactory.getMeta(item.typeId());
        return meta != null && meta.stackable();
    }

    default void onUse(PlayerContext context, ItemInstance item) {}

    default void onCombine(PlayerContext context, ItemInstance source, ItemInstance target) {}
}